<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单练习</title>
</head>
<body>
<form action="#" method="get">
    用户名：<input type="text" maxlength="10" placeholder="请输入用户名" value="789" name="username"> <br>
    密&nbsp;&nbsp;&nbsp;码：<input type="password" name="pwd"> <br>
    性别：<label for="male">男</label>
    <input type="radio" name="sex" value="男" id="male">
    <label for="female">女</label>
    <input type="radio" name="sex" id="female" value="女" checked><br>
    爱好：打球 <input type="checkbox" name="like" value="打球" checked> 唱歌 <input type="checkbox" name="like"><br><br>
    <input type="button" value="按钮"><br><br>
    <input type="search" placeholder="搜索" name="q"><br><br>
    <input type="file">
    <input type="submit" value="注册">
    <input type="reset" value="重置">
</form>
</body>
</html>